package com.ccrego.haiyi.account;


import com.ccrego.haiyi.common.http.UrlBase;

import static com.ccrego.haiyi.common.http.UrlBase.URL_PREFIX;

/**
 * url center
 *
 * @Author: PV
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016/7/18 15:04
 * @Version: 1.0.0
 */
public class UrlCenter {

    private static final String URL_HEAD = "";
    /**
     * 获取验证码
     * type: 1、注册 2 、修改密码 3、重置密码
     */
    public final static String CAPTCHA = URL_PREFIX + "/captcha/%1$s/type/%2$d";

    /**
     * 个人中心的修改密码
     */
    public final static String USER_PASSWORD = URL_PREFIX + "/user/password";

    /**
     * 个人中心的修改密码
     */
    public final static String USER_REDD_NUM = URL_PREFIX + "/article/reads/";
    /**
     * 判断文章是否存在
     */
    public final static String USER_ARTICLE_EXIST = URL_PREFIX + "/article/exist/";


    /**
     * 刷新token
     */

    public final static String UPDATATOKEN = URL_PREFIX + URL_HEAD + "/user/refreshToken";

    /**
     * 判断用户是否存在
     */
    public final static String ISEXIST = URL_PREFIX + "/user/exists/%1$s";

    /**
     * 验证码校验
     */
    public final static String ISCodeExist = URL_PREFIX + "/captcha/verify/phone/%1$s/type/%2$d/code/%3$s";

    /**
     * 忘记密码
     */
    public final static String FORGETPASSWORD = URL_PREFIX + "/user/backPd";

    /**
     * 登录
     */
    public final static String LOGIN = URL_PREFIX + URL_HEAD + "/user/login";
    /**
     * 修改密码
     */
    public final static String UPDATA_PASSWORD = URL_PREFIX + URL_HEAD + "/user/password/reset";

    /**
     * 注册
     */
    public final static String REGISTER = URL_PREFIX + "/user/register";
    /**
     * 获取用户信息
     */
    public final static String USER = URL_PREFIX + URL_HEAD + "/user";
    /**
     * 根据手机号获取信息
     */
    public final static String GET_USER_INFO = URL_PREFIX + URL_HEAD + "/user/getUserInfo";

    /**
     * 获取用户信息
     */
    public final static String UPLOAD_PORTRAIT = URL_PREFIX + "/res/upload/portrait/112237";

    /**
     * 获取用户协议
     */

    public final static String GET_AGREEMENT = URL_PREFIX + "/user/agreement?id=1";

    /**
     * 修改密码
     */

    public final static String FORGET_PASSWORD = URL_PREFIX + "/user/password";
    // region 七牛云token
    /**
     * QINIU_TOKEN
     */
    public final static String QINIU_TOKEN = URL_PREFIX + "/abcd" + "/qiniu/uptoken";
    /**
     * QINIU_ OUT LINK 用来跟key拼接生成文件url
     */
    public static final String OUTER_LINK = "http://ogeo9cgq3.bkt.clouddn.com/";
    // endregion

    /**
     * 阿里支付
     */
    public final static String ALIPAY_INFO = URL_PREFIX + URL_HEAD + "/app/alipay/%1$s";
    /**
     * 微信支付
     */
    public final static String WECHAT_PAYINFO = URL_PREFIX + URL_HEAD + "/app/wxpay/%1$s";


    //微信登录

    public final static String WX_LOGIN = UrlBase.URL_PREFIX + "/weixin/login";

    //微信绑定

    public final static String WX_REGISTER = UrlBase.URL_PREFIX + "/weixin/register";

    public final static String UPLAOD_AVATAR = UrlBase.URL_PREFIX + "/uploader/image";

    public final static String ARTICLE_URL = UrlBase.URL_PREFIX + "/article/%1$s";
}
